<html>
<head><meta charset="utf-8"><title>ast str · t-compiler/help · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/index.html">t-compiler/help</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/ast.20str.html">ast str</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="215124567"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/ast%20str/near/215124567" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Cameron Steffen <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/ast.20str.html#215124567">(Oct 30 2020 at 17:17)</a>:</h4>
<p>Hacking on clippy. Is there a way to get a string from a ast::Ty - the original code?</p>



<a name="215124796"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/ast%20str/near/215124796" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Cameron Steffen <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/ast.20str.html#215124796">(Oct 30 2020 at 17:19)</a>:</h4>
<p>I'm thinking I can use ast instead of hir to fix <a href="https://github.com/rust-lang/rust-clippy/issues/6236">https://github.com/rust-lang/rust-clippy/issues/6236</a></p>



<a name="215128147"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/ast%20str/near/215128147" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Cameron Steffen <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/ast.20str.html#215128147">(Oct 30 2020 at 17:46)</a>:</h4>
<p>I think I need to use the util::snippet method.</p>



<a name="215131805"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/ast%20str/near/215131805" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Cameron Steffen <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/ast.20str.html#215131805">(Oct 30 2020 at 18:15)</a>:</h4>
<p>nevermind :)</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>